<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% request.setAttribute("path", request.getContextPath()); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript" src="../staticres/Js/jquery.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>你还没有登录哦！</title>
</head>
<style>
p {
	font-size: 40px
}

.href {
	color: blue
}

.href:hover {
	color: red
}
</style>

<body>
	<center>
		<p>
			您还尚未登录！！！！！！ <span id="time" style="color: coral;">5</span>秒后跳转到登录页面
		</p>
		<p style="cursor: hand;" class="href">点击此处立即跳转！！</p>
	</center>
</body>
<script>
	$(".href").click(function(){
	     location.href="${path}/login/login.do"
	 })
	
	$(function(){
		setInterval(function(){
			var i=$("#time").html()-1
			if(i==0){
				location.href="${path}/login/login.do"
			}
			$("#time").html(i)
		},1000)
	})
	
	
</script>
</html>